package com.server;

import com.doman.TeacherParent;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface TeacherParentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TeacherParent record);

    //添加平台的登录信息
    int insertSelective(TeacherParent record);

    TeacherParent selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TeacherParent record);

    int updateByPrimaryKey(TeacherParent record);

    //查询用户是否绑定过
    TeacherParent selectByPrimaryKeyOpenid(TeacherParent teacherParent);

    //根据openid修改平台信息
    int updateByPrimaryByOpenid(TeacherParent teacherParent1);

    //根据openid删除该家长关联关系
    int deleteByPrimaryByOpenid(TeacherParent teacherParent);
}